<template>
	<web-view v-if="webviewUrl" :src="webviewUrl"></web-view>
</template>

<script>
export default {
	components: {
	},
	data() {
		return {
			webviewUrl: '',
		}
	},
    onLoad(query) {
        this.title = query.title;
        this.webviewUrl = decodeURIComponent(query.url);
        if (this.title) {
            uni.setNavigationBarTitle({
                title: this.title,
            });
        }
	},
	methods: {

	}
}
</script>

<style scoped lang="scss">

</style>
